package com.epalmpay.controller.channel.datareport;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.epalmpay.dto.datareport.BaseReportInDTO;
import com.epalmpay.dto.datareport.ChargeReportExportListOutDTO;
import com.epalmpay.dto.datareport.ChargeReportInfoListOutDTO;
import com.epalmpay.dto.datareport.ChargeReportListOutDTO;
import com.epalmpay.dto.datareport.FlowChargeReportInfoListOutDTO;
import com.epalmpay.dto.datareport.FlowChargeReportListOutDTO;
import com.epalmpay.dto.datareport.OilChargeReportInfoListOutDTO;
import com.epalmpay.dto.datareport.OilChargeReportListOutDTO;
import com.epalmpay.exception.ApplicationException;
import com.epalmpay.service.jobservice.ITradeStatisService;
import com.epalmpay.service.yunstream.IOilcardOrderService;

@Controller
@RequestMapping(value="/merchant/chargeReport")
public class ChargeReportController {

	@Resource
	private ITradeStatisService tradeStatisService;
	/**
	 * 显示油卡充值 收入对账数据列表
	 * @param 
	 * @return
	 */
	@RequestMapping(value="/chargeReportList")
	@ResponseBody
	public ChargeReportListOutDTO  chargeReportList (BaseReportInDTO baseReportInDTO){
		ChargeReportListOutDTO  result=new ChargeReportListOutDTO();
		try {
			result = tradeStatisService.chargeReportList(baseReportInDTO);
		} catch (ApplicationException ae) {
			result = null;
			ae.printStackTrace();
		} catch (Exception e) {
			result = null;
			e.printStackTrace();
		}
		
		return result;
	}
	
	
	/**
	 * 显示油卡充值 收入对账数据列表
	 * @param 
	 * @return
	 */
	@RequestMapping(value="/chargeReportExportList")
	@ResponseBody
	public ChargeReportExportListOutDTO  chargeReportExportList (BaseReportInDTO baseReportInDTO){
		ChargeReportExportListOutDTO  result=new ChargeReportExportListOutDTO();
		try {
			result = tradeStatisService.chargeReportExportList(baseReportInDTO);
		} catch (ApplicationException ae) {
			result = null;
			ae.printStackTrace();
		} catch (Exception e) {
			result = null;
			e.printStackTrace();
		}
		
		return result;
	}
	
	
	
	
	/**
	 * 显示油卡充值 收入对账数据明细列表
	 * @param 
	 * @return
	 */
	@RequestMapping(value="/chargeReportInfoList")
	@ResponseBody
	public ChargeReportInfoListOutDTO  chargeReportInfoList (BaseReportInDTO baseReportInDTO){
		ChargeReportInfoListOutDTO  result=new ChargeReportInfoListOutDTO();
		try {
			result = tradeStatisService.chargeReportInfoList(baseReportInDTO);
		} catch (ApplicationException ae) {
			result = null;
			ae.printStackTrace();
		} catch (Exception e) {
			result = null;
			e.printStackTrace();
		}
		
		return result;
	}
	
	
	
}
